<template>
  <div class="project">
    <!-- 固件升级  -->
    <div class="wrapper">
      <div class="wb_header">
        <div>设备固件升级</div>
      </div>
      <div class="warp warp1">
        <el-form :inline="true" :model="queryFrom" class="demo-form-inline" label-width="16px">
          <el-form-item label="">
            <el-input size="small" placeholder="请输入内容" suffix-icon="el-icon-search" v-model="queryFrom.input1"></el-input>
          </el-form-item> 
          <el-form-item label=" "> 
            <el-button type="primary" size="small">添加</el-button>
          </el-form-item> 
        </el-form> 
      </div> 
      <el-table v-loading="loading" :data="configList"> 
        <el-table-column label="版本号" align="center" prop="version" />
        <el-table-column label="md5" align="center" prop="md5" :show-overflow-tooltip="true" />
        <el-table-column label="创建时间" align="center" prop="created" :show-overflow-tooltip="true" />
        <el-table-column label="说明" align="center" prop="remark" :show-overflow-tooltip="true" /> 
        <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
          <!-- <template slot-scope="scope"> -->
          <template>
            <el-button size="mini" type="text" style="color: #f56c6c">删除</el-button>   
          </template>
        </el-table-column>
      </el-table> 
      <pagination v-show="total>0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize" @pagination="getList" />
    </div>
  </div>
</template>

<script>
export default {
data() {
  return {
    queryFrom: {},
    loading: false,
    configList: [
      { "id": 8, "path": "/group1/default/20220725/15/23/7/AIM-HW1V30_54616BD100-GB-PSX-HD-V1.1-SW-V3.1.8-20220722-2.bin", "domain": "http://cloud.bdsmc.net:18012", "md5": "c0c5a107a9e7aa40deefad1adddc98ca", "size": 340648, "version": "1V30_54616BD100-V1.1-V3.1.8-20220722", "remark": "王创测试", "created": "2022-07-25 15:22:16" },
      { "id": 29, "path": "/group1/default/20220927/11/17/7/sw_control_063_0919_V1.0.0.bin", "domain": "http://cloud.bdsmc.net:18012", "md5": "41f8152586b1a6958ce7df84b0fc4e9b", "size": 70796, "version": "1.0.0", "remark": "IO控制器", "created": "2022-09-27 11:16:14" },
      { "id": 30, "path": "/group1/default/20220927/11/17/7/sw_control_063_0919_V1.0.1.bin", "domain": "http://cloud.bdsmc.net:18012", "md5": "f2e9dd514b43ef80896a75402403c028", "size": 70796, "version": "1.0.1", "remark": "IO控制器", "created": "2022-09-27 11:16:37" },
      { "id": 46, "path": "/group1/default/20221121/20/09/7/fengji_RTU_221121_beta.bin", "domain": "http://cloud.bdsmc.net:18012", "md5": "722173dde904b18945f002b55b36ae51", "size": 297804, "version": "1.0.0", "remark": "beta", "created": "2022-11-21 20:09:43" },
      { "id": 47, "path": "/group1/default/20221121/20/10/7/fengji_RTU_221121_realse.bin", "domain": "http://cloud.bdsmc.net:18012", "md5": "3ee51d91a65d2a55586b7a3ef793da44", "size": 297816, "version": "1.0.1", "remark": "realse", "created": "2022-11-21 20:10:46" },
      { "id": 48, "path": "/group1/default/20221129/09/22/7/AIM-GE1V10-54606BD100_SV1.0.33_20221124.bin", "domain": "http://cloud.bdsmc.net:18012", "md5": "8d7c9bb6e5b0c3f6a0ed93390124c982", "size": 333914, "version": "V1.0.33", "remark": "临沧", "created": "2022-11-29 09:23:19" },
      { "id": 50, "path": "/group1/default/20221129/10/22/7/AIM-GE1V10-54606BD100_HD_V1.0_SW_V1.0.29_20220621_1715(1).bin", "domain": "http://cloud.bdsmc.net:18012", "md5": "c2d3050f1fff0f4482fbe0c818801a2e", "size": 329060, "version": "接收机1.0.29", "remark": "", "created": "2022-11-29 10:22:53" },
      { "id": 53, "path": "/group1/default/20221110/10/00/7/设备信息表 (1).xls", "domain": "http://cloud.bdsmc.net/cloud/dfs", "md5": "2adaaef552c38164e3bfdf8fe72edfcd", "size": 4490, "version": "20221129", "remark": "", "created": "2022-11-29 11:12:11" },
      { "id": 54, "path": "/group1/default/20221215/17/13/7/UMEs_cjq_gz2021.bin", "domain": "http://cloud.bdsmc.net/cloud/dfs", "md5": "ef351b3a0bd46c9101f47404adc45118", "size": 105752, "version": "v2.4.20", "remark": "贵州RTU", "created": "2022-12-15 17:13:35" },
      { "id": 55, "path": "/group1/default/20221216/16/58/7/UMEs_cjq_gz2021.bin", "domain": "http://cloud.bdsmc.net/cloud/dfs", "md5": "02c9faefcc5e289b95a0982255226b42", "size": 105860, "version": "1.0", "remark": "贵州采集器升级", "created": "2022-12-16 16:59:56" }
    ],
    total: 10,
    queryParams:{
      pageNum: 1,
      pageSize: 10,
    }
  }
},
methods:{
  getList(){}, 
}
}
</script>

<style scoped>
@import "~@/assets/styles/tablePage.scss";
</style>